package com.bee.portal.service.sm.impl;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

import com.bee.base.entity.Page;
import com.bee.portal.dao.sm.DictionaryDao;
import com.bee.portal.domain.sm.Dictionary;
import com.bee.portal.service.sm.DictionaryService;

public class DictionaryServiceImpl implements DictionaryService {

	private DictionaryDao dictionaryDao;

	public void setDictionaryDao(DictionaryDao dictionaryDao) {
		this.dictionaryDao = dictionaryDao;
	}

	@Override
	public Serializable save(Dictionary entity) {
		return dictionaryDao.save(entity);
	}

	@Override
	public void saveAll(Collection<Dictionary> entities) {
		dictionaryDao.saveAll(entities);
	}

	@Override
	public Dictionary get(Long sid) {
		return dictionaryDao.get(sid);
	}

	@Override
	public List<Dictionary> find(String queryString, Object... values) {
		return dictionaryDao.find(queryString, values);
	}

	@Override
	public List<Dictionary> find(Dictionary entity) {
		return dictionaryDao.find(entity);
	}

	@Override
	public List<Dictionary> find(Map<String, String> params) {
		return dictionaryDao.find(params);
	}

	@Override
	public List<Dictionary> findAll() {
		return dictionaryDao.findAll();
	}

	@Override
	public void update(Dictionary entity) {
		dictionaryDao.update(entity);
	}

	@Override
	public void updateAll(Collection<Dictionary> entities) {
		dictionaryDao.updateAll(entities);
	}

	@Override
	public void delete(Dictionary entity) {
		dictionaryDao.delete(entity);
	}

	@Override
	public void delete(Long sid) {
		dictionaryDao.delete(sid);
	}

	@Override
	public void deleteAll(Collection<Dictionary> entities) {
		dictionaryDao.deleteAll(entities);
	}

	@Override
	public Page page(String queryString, int pageNo, int pageSize) {
		return dictionaryDao.page(queryString, pageNo, pageSize);
	}

	@Override
	public Page page(Map<String, String> params, int pageNo, int pageSize) {
		return dictionaryDao.page(params, pageNo, pageSize);
	}

}
